﻿using Furion.DataValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application
{
    /// <summary>
    /// 扩展验证类型
    /// </summary>
    [ValidationType]
    public enum ExtendValidationTypes
    {
        /// <summary>
        /// 注册账号
        /// </summary>
        [ValidationItemMetadata(@"^[a-zA-Z\d]\w{3,19}[a-zA-Z\d]$", "账号长度在5~20位，且只能是字母，数字，下划线组成")]
        RegisterAccount,
        /// <summary>
        /// 注册密码
        /// </summary>
        [ValidationItemMetadata(@"^[a-zA-Z0-9]{6,22}$", "密码长度为6~22位字符，且只能是字母与数字组成")]
        RegisterPassword
    }
}
